package org.arrow.db.pojo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * UserRoleJoin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user_role_join", catalog = "hip_spr_tap", uniqueConstraints = {
		@UniqueConstraint(columnNames = "USER_ID"),
		@UniqueConstraint(columnNames = "ROLE_ID") })
public class UserRoleJoin implements java.io.Serializable {

	// Fields

	private Long joinId;
	private Long userId;
	private Long roleId;
	private Timestamp createDate;

	// Constructors

	/** default constructor */
	public UserRoleJoin() {
	}

	/** full constructor */
	public UserRoleJoin(Long joinId, Long userId, Long roleId,
			Timestamp createDate) {
		this.joinId = joinId;
		this.userId = userId;
		this.roleId = roleId;
		this.createDate = createDate;
	}

	// Property accessors
	@Id
	@Column(name = "JOIN_ID", unique = true, nullable = false)
	public Long getJoinId() {
		return this.joinId;
	}

	public void setJoinId(Long joinId) {
		this.joinId = joinId;
	}

	@Column(name = "USER_ID", unique = true, nullable = false)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "ROLE_ID", unique = true, nullable = false)
	public Long getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	@Column(name = "CREATE_DATE", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

}